A barrier reef is a type of coral reef that is separated from a mainland or island shore by a deep lagoon. It typically runs parallel to the coastline and serves as a protective barrier against waves and storms, providing a habitat for diverse marine life.